/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package vn.com.pps.web.common.component.table;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class RecordSet
{
  private Statement m_statement;
  private ResultSet m_set;

  public RecordSet(Statement pm_statement, ResultSet pm_set)
  {
    this.m_statement = pm_statement;
    this.m_set = pm_set;
  }

  public ResultSet getResultSet()
  {
    return this.m_set;
  }

  public void close()
  {
    try
    {
      this.m_set.close();
      this.m_statement.close();
    }
    catch (SQLException e)
    {
      e.printStackTrace();
    }
  }
}